<div class="easyui-accordion" data-options="fit: true">
        <div title="基本信息" data-options="iconCls:'icon-ok'" style="overflow:auto;">
            <table cellpadding="5">
				<input name="id" type="hidden" value="${(cmsContentItem.id)!}" />
				<tr>
					<td class="tbLabel">栏目:</td>
					<td>
						<@eu.comboTree id="cmsNavigationTree" required="true" url="cmsNavigation.do?cmsNavigationTree&id=${(cmsContentItem.navigationId)!}" name="navigationId" multiple="false"/>
					</td>
					<td class="tbLabel">标题:</td>
					<td><input name="title" class="easyui-validatebox textbox"
						data-options="required: false" value="${(cmsContentItem.title)!}" />
					</td>
					<td class="tbLabel">短标题:</td>
					<td><input name="shortTitle" class="easyui-validatebox textbox"
						data-options="required: false"
						value="${(cmsContentItem.shortTitle)!}" /></td>
					<td class="tbLabel">描述:</td>
					<td><input name="contentDesc" class="easyui-validatebox textbox"
						data-options="required: false"
						value="${(cmsContentItem.contentDesc)!}" /></td>
				</tr>
				<tr>
					<td class="tbLabel">来源位置:</td>
					<td><input name="origin" class="easyui-validatebox textbox"
						data-options="required: false" value="${(cmsContentItem.origin)!'本站原创'}" />
					</td>
					<td class="tbLabel">来源链接:</td>
					<td><input name="originUrl" class="easyui-validatebox textbox"
						data-options="required: false" value="${(cmsContentItem.originUrl)!}" />
					</td>
					
					<td class="tbLabel">状态:</td>
					<td><@eu.comboBox name="status"
						url="common.do?loadComboBox&key=CMS_CONTENT_STATUS&value=${(cmsContentItem.status)!}"
						/></td>
					<td class="tbLabel">作者:</td>
					<td><input name="author" class="easyui-validatebox textbox"
						data-options="required: false" value="${(cmsContentItem.author)!'本站编辑'}" />
					</td>
					<td class="tbLabel">发布日期:</td>
					<td><input name="releaseDate" style="width: 160px;"
						class="easyui-datebox" data-options="required: false"
						value="${(cmsContentItem.releaseDate)!}" /></td>
					
				</tr>
				<tr>
					<td class="tbLabel">固定到期日期:</td>
					<td><input name="topLevelDate" style="width: 160px;"
						class="easyui-datebox" data-options="required: false"
						value="${(cmsContentItem.topLevelDate)!}" /></td>
					<td class="tbLabel">归档日期:</td>
					<td><input name="pigeonholeDate" style="width: 160px;"
						class="easyui-datebox" data-options="required: false"
						value="${(cmsContentItem.pigeonholeDate)!}" /></td>
					<td class="tbLabel">固顶级别:</td>
					<td><input name="topLevel" style="width: 158px;"
						class="easyui-numberbox" precision="0" data-options="required: false"
						value="${(cmsContentItem.topLevel)!}" /></td>
					<td class="tbLabel">内容类型:</td>
					<td><@eu.comboBox name="contentType"
						url="common.do?loadComboBox&key=CMS_CONTENT_TYPE&value=${(cmsContentItem.contentType)!}"
						/></td>
					<td class="tbLabel">界面静态化:</td>
					<td><@eu.comboBox name="staticPage"
						url="common.do?loadComboBox&key=YON&value=${(cmsContentItem.staticPage)!}"
						/></td>
				</tr>
			</table>
        </div>
        <div title="内容" data-options="iconCls:'icon-help'">
			<textarea rows="30" cols="50" id="cmsContentTxt" name="cmsContentTxt">${(cmsContentItem.contentTxt)!''}</textarea>
        </div>
        <div title="图片集" data-options="iconCls:'icon-help'">
        	<div id="content">
			    <div>
		    		<span id="spanButtonPlaceHolder"></span>
		            <input id="btnCancel" type="button" value="取消全部上传" onclick="swfu.cancelQueue();" disabled="disabled" style="margin-left: 2px; font-size: 8pt; height: 22px;" />
	            </div>
	                <p>&nbsp;</p>
	            <div class="fieldset flash" id="fsUploadProgress">
	            <span class="legend">Upload Queue</span>
	            </div>
		        <div id="divStatus">0 个文件已经上传</div>
			</div>
			<div id="uploadImg">
				<input type="hidden" id="cmsUploadImgs" name="uploadImgName" value="" />
			</div>
			<#if cmsContentItem??>
			<#list cmsContentItem.cmsContentPicItems as cp>
			<tr>
				<td colspan="5">
					<img src="${cp.imgPath!}" width="300"/>
					<script type="text/javascript">
							$('#cmsUploadImgs').val($('#cmsUploadImgs').val()+',${cp.imgPath!}');
					</script>
				</td>
			</tr>
			</#list>
			</#if>
			
        </div>
</div>

<script type="text/javascript">
	  CKEDITOR.replace('cmsContentTxt');

      var swfu = new SWFUpload({
        	 flash_url : "static/plugins/swfupload/swfupload.swf",
            upload_url: "cmsContent.do?swfupload",
            file_post_name:"filedata",
            post_params: {"name" : "zwm"},
            use_query_string:true,
            // File Upload Settings
             file_size_limit : "100 MB",
                file_types : "*.*",    //这是全部文件都可以上传，如果要限制只有某些文件上传，则可以这么写 file_types : "*.jpg;*.gif;*.png",
                file_types_description : "All Files",
                file_upload_limit : 100,
                file_queue_limit : 0,
                custom_settings : {
                    progressTarget : "fsUploadProgress",
                    cancelButtonId : "btnCancel"
                },
                debug: false,


                // Button settings

               //这儿是swfupload v2新增加的功能，由于flash player 10的安全性的提高所以增加了此功能。

              //在SWFUpload v2中，不能再使用html的button来触发SWFUpload，必须使用定制的Button，这其中比较要注意的是，button不能再用css控制，需要用图片来显示

                button_image_url: "images/XPButtonNoText_160x22.png",
                button_placeholder_id: "spanButtonPlaceHolder",
                button_width: 160,
                button_height: 22,
                button_text: '<span class="button">&nbsp; &nbsp;选择文件 &nbsp;  &nbsp;<span class="buttonSmall">(2 MB Max)</span></span>',
                button_text_style: '.button { font-family: Helvetica, Arial, sans-serif; font-size: 14pt; } .buttonSmall { font-size: 10pt; }',
                button_text_top_padding: 1,
                button_text_left_padding: 5,
                // The event handler functions are defined in handlers.js
                file_queued_handler : fileQueued,
                file_queue_error_handler : fileQueueError,
                file_dialog_complete_handler : fileDialogComplete,
                upload_start_handler : uploadStart,
                upload_progress_handler : uploadProgress,
                upload_error_handler : uploadError,
                upload_success_handler : function(file,rs) {
                	printLog(file);
                	printLog(rs);
                	var json = eval('(' + rs + ')'); 
                	$('#uploadImg').append('<img src="'+json.obj+'" width="300"/>');
                	$('#cmsUploadImgs').val($('#cmsUploadImgs').val()+','+json.obj);
                },
                upload_complete_handler : uploadComplete,
                queue_complete_handler : queueComplete    // Queue plugin event
         });
      
      function startUploadFile(){
         swfu.startUpload();
      }

   </script>
